package org.example.order.service;

import com.alipay.api.AlipayApiException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.example.core.utils.R;

import java.io.IOException;

/**
 * @author 小杰_cc
 * @version 1.0
 */
public interface OrderAliPayService {
    // 处理支付宝支付
    void pay(String orderSn, HttpServletResponse response) throws AlipayApiException, IOException;

    // 支付回调
    R<?> payNotify(HttpServletRequest request) throws AlipayApiException;
}
